#ifndef DOCKWIDGETTITLE_H
#define DOCKWIDGETTITLE_H

#include <QString>
#include <QSize>
#include <QWidget>

class DockWidgetTitle : public QWidget
{
public:

    DockWidgetTitle();

    DockWidgetTitle(QString dockName,QWidget *parent = 0);

     QSize sizeHint() const { return minimumSizeHint(); }
     QSize minimumSizeHint() const;

     int width;
     QString name;//receive parent,s name

protected:

     void paintEvent(QPaintEvent *event);//paint titleBar
     void mousePressEvent(QMouseEvent *event); //mouse press

private:

     QPixmap minPix, closePix, floatPix;

 };

#endif // DOCKWIDGETTITLE_H
